import mongoose, { Schema, Document } from 'mongoose';
// await mongoose.connection.dropCollection('wordclouds');
export interface WordCloudType extends Document {
    user_id: string,
    content: Array<any>;
}

const WordCloudSchema: Schema = new Schema({
    user_id: { type: String, required: false },//文章的id
    wordList: { type: Array, default: [] },
}, { timestamps: true });


export default mongoose.models.WordCloud || mongoose.model<WordCloudType>('WordCloud', WordCloudSchema);
